package com.yfp.group.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yfp.common.core.text.BigDecimalSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 订单管理 订单列表展示类
 */
@Data
public class EnterpriseOrderPayInfoVO implements Serializable {

    private static final long serialVersionUID = -2184415934252744494L;

    /**
     * 设备名称
     */
    @Schema(description = "设备名称")
    private String machineName;

    /**
     * 设备地址
     */
    @Schema(description = "设备地址")
    private String machineAddress;

    /**
     * 订单号
     */
    @Schema(description = "订单号")
    private String orderSn;

    /**
     * 支付金额
     */
    @Schema(description = "支付金额")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal payMoney;

    /**
     * 支付余额
     */
    @Schema(description = "支付余额")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal payBalance;

    /**
     * 订单详情
     */
    @Schema(description = "订单详情")
    List<EnterpriseOrderDetailVO> enterpriseOrderDetailVOS;
}
